<?php 
/* OpenBIBLIO -- A library administration web interface
* Copyright (C) 2002-2005 Fr&eacute;d&eacute;ric Descamps <lefred@tiscali.be>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/

include_once("includes/db.inc");
include_once("includes/functions.inc");

session_start();
include_once("includes/session.inc");

ControleAcces("graphs.php",$login,$pwd,$user_id,session_id());

if(!$user_id)
{
exit;
}

include ("includes/header.inc");
if(!($_GET['type'])) 
	$type=1;
else 
	$type=($_GET['type']);

echo "<center><h3>";
if ($type == 1) {
	echo _("R&eacute;partition des livres par genre :");
	echo "</h3><img src=graphs/genres.php><h3>";
	echo _("R&eacute;partition des livres par &eacute;tat :");
	echo "</h3><img src=graphs/genres.php?type=2>";
}
else {
	echo _("R&eacute;partition des livres par local :");
	echo "</h3><img src=graphs/genres.php?type=3><h3>";
	echo _("R&eacute;partition des livres par biblio :");
	echo "</h3><img src=graphs/genres.php?type=4><h3>";
	echo _("R&eacute;partition des livres par rang&eacute;e :");
	echo "</h3><img src=graphs/genres.php?type=5>";
}
echo "</center>";
?>
<br><br>
<div>
<span id=left-text>
<A HREF="admin.php?menu=1">
<?php echo _("retour menu administration"); ?>
</A><BR>
<A HREF="index.php">
<?php echo _("retour menu principal"); ?>
</A></span>
</div>
<br>
<?php
include("includes/footer.inc");
?>

